﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

using Happy.Web.Mvc;
using Happy.Cms.Controllers.Utils;
using Happy.Cms.Query.Articles;

namespace Tenoner.WebSite.Controllers
{
    public class HomeController : HappyController
    {
        //
        // GET: /Home/

        public ActionResult Index()
        {
            return View(this.GetIndexModel());
        }

        private IEnumerable<ArticleView> GetIndexModel()
        {
            return this.FindArticlesByCategoryName("幻灯片", 5);
        }
    }
}
